<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<span class="f-fs2 f-mr20">${qo.pageNumber}/${qo.totalPage}</span><span class="f-fs2 f-mr20">共${qo.totalSize }记录</span>
每页显示<select id="pageSize" name="pageSize"  onchange="listForm(${pageNo})">
	<option value="10" <c:if test="${qo.pageSize ==10}">selected="selected"</c:if>>10</option>
	<option value="20" <c:if test="${qo.pageSize ==20}">selected="selected"</c:if>>20</option>
	<option value="30" <c:if test="${qo.pageSize ==30}">selected="selected"</c:if>>30</option>
	<option value="50" <c:if test="${qo.pageSize ==50}">selected="selected"</c:if>>50</option>
	<option value="100" <c:if test="${qo.pageSize ==100}">selected="selected"</c:if>>100</option>
	<option value="200" <c:if test="${qo.pageSize ==200}">selected="selected"</c:if>>200</option>
</select>

<span class="f-fs2 f-mr20 page-bnt"> 
<c:if test="${qo.pageNumber >0}">
	<c:choose>
		<c:when test="${qo.pageNumber ==1}">
			<a href="javascript:void(0)"><</a>
		</c:when>
		<c:otherwise>
			<a href="javascript:void(0)"
				onclick="javascript:listForm(${qo.pageNumber-1})"><</a>
		</c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${qo.totalPage <=10}">
			<c:forEach var="ipage" begin="1" end="${qo.totalPage}" step="1">
				<c:choose>
					<c:when test="${ipage==qo.pageNumber}">
						<span>${ipage}</span>
					</c:when>
					<c:otherwise>
						<a href='javascript:void(0);'
							onclick="javascript:listForm(${ipage})">${ipage}</a>
					</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<c:choose>
				<c:when test="${qo.pageNumber<=5}">
					<c:forEach var="ipage" begin="1" end="10" step="1">
						<c:choose>
							<c:when test="${ipage==qo.pageNumber}">
								<span>${ipage}</span>
							</c:when>
							<c:otherwise>
								<a href='javascript:void(0);'
									onclick="javascript:listForm(${ipage})">${ipage}</a>
							</c:otherwise>
						</c:choose>
					</c:forEach>
				</c:when>
				<c:otherwise>

					<c:choose>
						<c:when test="${(qo.totalPage-qo.pageNumber-5)>=0}">
							<c:forEach var="ipage" begin="${qo.pageNumber-4}"
								end="${qo.pageNumber+5}" step="1">
								<c:choose>
									<c:when test="${ipage==qo.pageNumber}">
										<span>${ipage}</span>
									</c:when>
									<c:otherwise>
										<a href='javascript:void(0);'
											onclick="javascript:listForm(${ipage})">${ipage}</a>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</c:when>
						<c:otherwise>
							<c:forEach var="ipage"
								begin="${qo.pageNumber-4+(qo.totalPage-qo.pageNumber-5)}"
								end="${qo.totalPage}" step="1">
								<c:choose>
									<c:when test="${ipage==qo.pageNumber}">
										<span>${ipage}</span>
									</c:when>
									<c:otherwise>
										<a href='javascript:void(0);'
											onclick="javascript:listForm(${ipage})">${ipage}</a>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</c:otherwise>
					</c:choose>
				</c:otherwise>
			</c:choose>
		</c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${qo.totalPage==qo.pageNumber}">
			<a href="javascript:void(0);">></a>
		</c:when>
		<c:otherwise>
			<a href='javascript:void(0);'
				onclick="javascript:listForm(${qo.pageNumber+1})">></a>
		</c:otherwise>
	</c:choose>
</c:if>
</span>
<input type="hidden" id="totalPage" value="${qo.totalPage}" />
<input type="hidden" value="${qo.pageNumber}" id="pageNumber" name="pageNumber">